package com.jt.travel.store.dao;

import com.jt.travel.store.pojo.TImg;
import com.jt.travel.store.pojo.TRoute;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface TRouteMapper {

    List<TRoute> selectRouteBypage(@Param("index") Integer index, @Param("pageSize")Integer pageSize,@Param("categoryId") Integer category_id, @Param("name")String route_name);

    Integer selectRoutePageCount(@Param("categoryId")Integer category_id, @Param("name")String route_name);

    TRoute getById(Integer id);

    List<TImg> getImgsById(Integer routeId);
}
